package com.ape.mapsa.produccion.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the imp_performed_work database table.
 * 
 */
@Entity
@Table(name = "imp_performed_work")
@NamedQuery(name = "ImpPerformedWork.findAll", query = "SELECT i FROM ImpPerformedWork i")
public class ImpPerformedWork implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@Column(name = "bobina_n")
	private Integer bobinaN;

	private String createdby;

	@Temporal(TemporalType.TIMESTAMP)
	private Date creationdate;

	private Float meters;

	@Temporal(TemporalType.TIMESTAMP)
	private Date modificationdate;

	private String modifiedby;

	private String operario;

	private Float peso;

	private Integer state;

	// bi-directional many-to-one association to ProdOperator
	@ManyToOne
	@JoinColumn(name = "prod_operator_id")
	private ProdOperator prodOperator;

	// bi-directional many-to-one association to Impresion
	@ManyToOne
	private Impresion impresion;

	public ImpPerformedWork() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getBobinaN() {
		return this.bobinaN;
	}

	public void setBobinaN(Integer bobinaN) {
		this.bobinaN = bobinaN;
	}

	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Date getCreationdate() {
		return this.creationdate;
	}

	public void setCreationdate(Date creationdate) {
		this.creationdate = creationdate;
	}

	public Float getMeters() {
		return this.meters;
	}

	public void setMeters(Float meters) {
		this.meters = meters;
	}

	public Date getModificationdate() {
		return this.modificationdate;
	}

	public void setModificationdate(Date modificationdate) {
		this.modificationdate = modificationdate;
	}

	public String getModifiedby() {
		return this.modifiedby;
	}

	public void setModifiedby(String modifiedby) {
		this.modifiedby = modifiedby;
	}

	public String getOperario() {
		return this.operario;
	}

	public void setOperario(String operario) {
		this.operario = operario;
	}

	public Float getPeso() {
		return this.peso;
	}

	public void setPeso(Float peso) {
		this.peso = peso;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Impresion getImpresion() {
		return this.impresion;
	}

	public void setImpresion(Impresion impresion) {
		this.impresion = impresion;
	}

	public ProdOperator getProdOperator() {
		return prodOperator;
	}

	public void setProdOperator(ProdOperator prodOperator) {
		this.prodOperator = prodOperator;
	}

}